package software_construction.DesignProject.d4_DIP.demo2;

import software_construction.DesignProject.d4_DIP.demo2.cpu.Cpu;
import software_construction.DesignProject.d4_DIP.demo2.memory.Memory;

public class Computer {
    private Cpu cpu;
    private Memory memory;

    public Computer() {
    }

    public Computer(Cpu cpu, Memory memory) {
        this.cpu = cpu;
        this.memory = memory;
    }

    public void startRun(){
        cpu.calculate();
        memory.storage();
    }
}
